/**
 * 
 */
package com.jeecms.wicool.manager.kitchen.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.dao.kitchen.KitchenInfoDao;
import com.jeecms.wicool.entity.kitchen.KitchenInfo;
import com.jeecms.wicool.manager.kitchen.KitchenInfoMng;

/**
 * @author spring
 *
 */
public class KitchenInfoMngImpl implements KitchenInfoMng {
	
	@Autowired
	private KitchenInfoDao kitchenInfoDao;

	@Override
	public Pagination getPage(String name, int pageNo, int pageSize) {
		return kitchenInfoDao.getPage(name, pageNo, pageSize);
	}

	@Override
	public KitchenInfo findById(Integer id) {
		return kitchenInfoDao.findById(id);
	}

	@Override
	public KitchenInfo save(KitchenInfo obj) {
		return kitchenInfoDao.save(obj);
	}

	@Override
	public KitchenInfo deleteById(Integer id) {
		return kitchenInfoDao.deleteById(id);
	}

	@Override
	public List<KitchenInfo> deleteByIds(Integer[] ids) {
		return kitchenInfoDao.deleteByIds(ids);
	}

	@Override
	public KitchenInfo update(KitchenInfo obj) {
		return kitchenInfoDao.update(obj);
	}

	@Override
	public List<KitchenInfo> getAll() {
		return kitchenInfoDao.getAll();
	}
	
}
